$color: (
    // 主色
    primary: $uni-primary,
    // 辅助色
    success: $uni-success,
    warning: $uni-warning,
    error: $uni-error,
    // 黑色
    black:$uni-black,
    // 白色
    white:$uni-white) !default;
// 灰色
$gray: #EEEEEE;


@each $key,
$child in $color {
    .border-#{"" + $key} { border:1rpx solid $child; }
	.border-top-#{"" + $key} { border-top:1rpx solid $child; }
	.border-bottom-#{"" + $key} { border-bottom:1rpx solid $child; }
	.border-left-#{"" + $key} { border-left:1rpx solid $child; }
	.border-right-#{"" + $key} { border-right:1rpx solid $child; }
}

.border { border:1rpx solid $gray; }
.border-top { border-top:1rpx solid $gray; }
.border-bottom { border-bottom:1rpx solid $gray; }
.border-left { border-left:1rpx solid $gray; }
.border-right { border-right:1rpx solid $gray; }